﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class TaiKhoanOnlineDTO
    {
        #region "Khai báo các biến"
        private string _maTKOL;
        private string _tendangnhap;
        private string _matkhau;
        private string _diachi;
        private string _dienthoai;
        private string _email;
        private DateTime _ngaydangky;
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaTKOL
        {
            get { return _maTKOL; }
            set { _maTKOL = value; }
        }
        [DataMember]
        public string Tendangnhap
        {
            get { return _tendangnhap; }
            set { _tendangnhap = value; }
        }
        [DataMember]
        public string Matkhau
        {
            get { return _matkhau; }
            set { _matkhau = value; }
        }
        [DataMember]
        public string Diachi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        [DataMember]
        public string Dienthoai
        {
            get { return _dienthoai; }
            set { _dienthoai = value; }
        }
        [DataMember]
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        [DataMember]
        public DateTime Ngaydangky
        {
            get { return _ngaydangky; }
            set { _ngaydangky = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public TaiKhoanOnlineDTO() { }
        public TaiKhoanOnlineDTO(string matk, string tendangnhap, string matkhau, string diachi, string sdt, string email, DateTime ngaydangky)
        {
            MaTKOL = matk;
            Tendangnhap = tendangnhap;
            Matkhau = matkhau;
            Diachi = diachi;
            Dienthoai = sdt;
            Email = email;
            Ngaydangky = ngaydangky;
        }
        public TaiKhoanOnlineDTO(TaiKhoanOnlineDTO TaiKhoanOnline)
        {
            this.MaTKOL = TaiKhoanOnline.MaTKOL;
            this.Tendangnhap = TaiKhoanOnline.Tendangnhap;
            this.Matkhau = TaiKhoanOnline.Matkhau;
            this.Diachi = TaiKhoanOnline.Diachi;
            this.Dienthoai = TaiKhoanOnline.Dienthoai;
            this.Email = TaiKhoanOnline.Email;
            this.Ngaydangky = TaiKhoanOnline.Ngaydangky;
        }
        #endregion
    }
}